import request from '@/utils/request'

// 查询调拨单头列表
export function listHeader(query) {
  return request({
    url: '/api/transferOrder/page',
    method: 'get',
    params: query
  })
}

// 查询调拨单头详细
export function getHeader(inventoryMovemenId) {
  return request({
    url: '/api/transferOrder/' + inventoryMovemenId,
    method: 'get'
  })
}

// 新增调拨单头
export function addHeader(data) {
  return request({
    url: '/api/transferOrder/add',
    method: 'post',
    data: data
  })
}

// 修改调拨单头
export function updateHeader(data) {
  return request({
    url: '/api/transferOrder/update',
    method: 'post',
    data: data
  })
}

// 删除调拨单头
export function delHeader(inventoryMovemenId) {
  return request({
    url: '/api/transferOrder/delete/' + inventoryMovemenId,
    method: 'post'
  })
}
